package com.huifaapp.mall.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author: wangZ
 * @date：2017/8/18 10:10
 * FileName：UserBean
 * @description：个人信息实体
 */

public class UserBean implements Parcelable {


    /**
     * userid : 7b76e6503b5e4b449e3a275dee606651
     * expiredTime : 2018-02-05 16:03:48
     * token : 201801291603314799e0d7ab209da84941914a7afee28ac4d7
     */

    private String userid;
    private String expiredTime;
    private String token;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.token);
        dest.writeString(this.expiredTime);
    }

    public UserBean() {
    }

    protected UserBean(Parcel in) {
        this.token = in.readString();
        this.expiredTime = in.readString();
    }

    public static final Creator<UserBean> CREATOR = new Creator<UserBean>() {
        @Override
        public UserBean createFromParcel(Parcel source) {
            return new UserBean(source);
        }

        @Override
        public UserBean[] newArray(int size) {
            return new UserBean[size];
        }
    };


    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getExpiredTime() {
        return expiredTime;
    }

    public void setExpiredTime(String expiredTime) {
        this.expiredTime = expiredTime;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    @Override
    public String toString() {
        return "UserBean{" +
                "userid='" + userid + '\'' +
                ", expiredTime='" + expiredTime + '\'' +
                ", token='" + token + '\'' +
                '}';
    }
}
